package com.lds.config.center.server.client.service;

import com.lds.config.center.client.common.model.request.GetAllItemRequest;
import com.lds.config.center.client.common.model.request.NotifyUpdateItemRequest;
import com.lds.config.center.client.common.model.response.GetAllItemResponse;
import com.lds.config.center.client.common.model.response.NotifyUpdateItemResponse;
import com.lds.management.center.common.model.dto.ResultDTO;
import org.springframework.web.context.request.async.DeferredResult;

public interface ClientService {
    ResultDTO<GetAllItemResponse> getAllItem(GetAllItemRequest request);

    DeferredResult<ResultDTO<NotifyUpdateItemResponse>> notifyUpdateItem(NotifyUpdateItemRequest request);

    void autoNotify(NotifyUpdateItemResponse response);
}
